
<div class="wb-listing-gallery" id="wb_listing_image_content">
    <table class="table table-striped table-striped-image m-b-none text-sm">
        <header class="panel-heading">
            <button id="btn_print_image" class="btn btn-xs btn-info pull-right" href="javascript:;">打印</button>
            已选择 <font id="print_selected_images">0</font> 张
        </header>
        <thead>
            <th width="80">选择打印</th>
            <th class="col-sm-2">预览</th>
            <th>原文件/文件夹名称</th>
            <th class="col-sm-1">截图尺寸</th>
            <th class="col-sm-1">截图大小</th>
            <th class="col-sm-1">隶属行动</th>
            <th class="col-sm-1">隶属案件</th>
            <th class="col-sm-2">创建时间</th>
            <th class="col-sm-2">操作</th>
        </thead>
        <tbody class="wb-gallery-content-image">
            {foreach from=$content_wb_image.child_folders key=k item=v}
            <tr id="wb_listing_item_{$v._id}">
                <td class="v-middle">-</td>
                <td class="v-middle">
                    <i class="fa fa-folder-open cursor-pointer m-t wb-gallery-folder" data-fid="{$v.fid}" data-type="image"></i>
                </td>
                <td class="v-middle">
                    <font class="title">{$v.title}</font>
                    <input type="text" class="form-control title-input default-hidden" 
                            value="{$v.title}" data-folder_id="{$v._id}" data-show_type="listing" />
                </td>
                <td class="v-middle">-</td>
                <td class="v-middle">-</td>
                <td class="v-middle">-</td>
                <td class="v-middle">-</td>
                <td class="v-middle">{($v.ctime/1000)|date_format:"%Y-%m-%d %H:%M:%S"}</td>
                <td class="v-middle">
                    <a class="btn btn-xs btn-orange action-rename" data-show_type="listing">
                        <i class="fa fa-pencil"></i><span> 重命名</span>
                    </a>
                    <a class="btn btn-xs btn-red action-delete" data-folder_id="{$v._id}" data-fid="{$v.fid}" data-show_type="listing">
                        <i class="fa fa-trash-o"></i><span> 删除</span>
                    </a>
                </td>
            </tr>
            {/foreach}
            
            {foreach from=$content_wb_image.contents key=k item=v}
            <tr id="wb_listing_item_{$v._id}">
                <td><input type="checkbox" name="post[]" class="checkbox-print" value="{$v._id}"></td>
                <td class="v-middle">
                    <a href="/workbenchadmin/image?_id={$v.pid}&card_id={$v.card_id}" title="点击进入编辑" target="_blank">
                        <img src="/uploads{$v.filepath}" class="thumb-lg" border="0" />
                    </a>
                </td>
                <td class="v-middle">{$v.title_from}</td>
                <td class="v-middle">{$v.image_width} x {$v.image_height} px</td>
                <td class="v-middle">{$v.filesize_format}</td>
                <td class="v-middle">{$v.card_title}</td>
                <td class="v-middle">{$v.archive_title}</td>
                <td class="v-middle">{$v.ctime}</td>
                <td class="v-middle">
                    <a href="/workbenchadmin/image?_id={$v.pid}&card_id={$v.card_id}" class="btn btn-xs btn-orange edit-single" target="_blank">
                        <i class="fa fa-pencil"></i><span> 编辑</span>
                    </a>
                    <a class="btn btn-xs btn-info action-move" data-a_id="{$v._id}" 
                            data-folder_hid="{$content_wb_image.parent_folder.hid}" data-type="image">
                        <i class="fa fa-pencil"></i><span>移动
                    </a>
                    <a href="{$_DOWNLOAD_URL}?_id={$v._id}" class="btn btn-xs btn-lightblue" target="_blank">
                        <i class="fa fa-download"></i><span> 下载</span>
                    </a>
                </td>
            </tr>
            {/foreach}
        </tbody>
    </table>
</div>
